import Index from "@/view/index.vue";
import Login from "@/view/auth/Login.vue";

export const routes = [
  {
    path: "/Login",
    name: "login",
    component: Login
  },
  {
    path: "/",
    name: "index",
    redirect: "/Login",
    component: Index,

    children: [
      {
        path: "/Home",
        meta: {
          title: "主页"
        },
        component: () => import("@/view/home/index.vue")
      },
      {
        path: "/User",
        meta: {
          title: "用户管理"
        },
        component: () => import("@/view/user/index.vue")
      },
      {
        path: "/Mate",
        meta: {
          title: "好友管理"
        },
        component: () => import("@/view/mate/index.vue")
      },
      {
        path: "/Group",
        meta: {
          title: "群组管理"
        },
        component: () => import("@/view/group/index.vue"),
        children: [
          {
            path: "List",
            meta: {
              title: "群组管理"
            },
            component: () => import("@/view/group/index.vue")
          },
          {
            path: "Member",
            meta: {
              title: "群组成员管理"
            },
            component: () => import("@/view/group/grouppages/GroupMember.vue")
          }
        ]
      },
      {
        path: "/Session",
        meta: {
          title: "会话管理"
        },
        component: () => import("@/view/session/index.vue")
      },
      {
        path: "/Message",
        meta: {
          title: "消息管理"
        },
        component: () => import("@/view/message/index.vue")
      },
      {
        path: "/File",
        meta: {
          title: "文件管理"
        },
        component: () => import("@/view/file/index.vue")
      },
      {
        path: "/AppPackage",
        meta: {
          title: "应用包管理"
        },
        component: () => import("@/view/appPackage/index.vue")
      },
      {
        path: "/Setting",
        meta: {
          title: "系统设置"
        },
        component: () => import("@/view/setting/index.vue")
      },
      {
        path: "/Music",
        meta: {
          title: "音乐播放"
        },
        component: () => import("@/view/music/index.vue")
      }
    ]
  }
];
